package com.gang.mars.basic.function;

import java.lang.annotation.Annotation;
import java.util.Map;
import java.util.function.Function;

/**
 * @author gang.chen
 * @description 泛型类， 使用用要指定A型参
 * @Date 2021/7/16 8:48
 */
public class Peach05<A extends Annotation> implements Peach03, Peach04{
    @Override
    public <T extends Map<String, Object>> T asMap(Function<Peach04<?>, T> function) {
        T map = function.apply(this);
        return map;
    }
}
